package com.zy;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
// 扫描 MyBatis Plus 的 Mapper 接口
@MapperScan("com.zy.user.mapper") // 注意：包名从 repository 变更为 mapper
@EnableFeignClients(basePackages= {"com.zy.web.api"})
@EnableDiscoveryClient // 启用Nacos服务发现
public class UserApp
{
    public static void main( String[] args )
    {
        SpringApplication.run(UserApp.class, args);
    }
}
